/*Whole Page*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
}

/*Header +  Body*/
.header{
  text-align: center;
  background-image: linear-gradient(to right, #FF3E3F, #4300FD, #05020C);
  margin: 0px;
  font-family: monospace;
}

h1.header{
  font-size: 50px;
  color:#f1f1f1;
}

h2.header{
  font-size: 15px;
  letter-spacing: 1em;
  color:#f1f1f1;
}

body{
  background-color: grey;
}

a{
  text-decoration: none;
  color:#05020C;
  font-size: 15px;
  padding: 10px;
  margin: 10px;
}

a:hover{
  color:#FF3E3F;
}

/*NavBar*/
ul{
  list-style-type: none;
  padding: 0;
  overflow: hidden;
  background-image: linear-gradient(to right, #FF3E3F, #4300FD, #05020C);
  z-index: 1;
}

li {
  float: left;
}

li a, .dropbtn {
  display: block;
  color: white;
  text-align: center;
  padding: 10px 12px;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: #ff9c9c;
  color: black;
  border-radius: 10px;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  border-radius: 0px 0px 10px 10px;
  background-color:rgba(0,0,0,0.9) ; /*CHange to transparent with a tint */
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
  display: block;
}

/*Sections*/
section p{
  font-size: 18px;
  margin: 20px 10%;
  text-align: justify;
}

.home, .service, .products, .contact{
  padding: 10px 25px;
  margin: 10px 30px;
  border-radius: 10px;
}

.home, .service{
  background-color: grey;
  color: white;
}

.products, .contact{
  background-color: white;
  color: black;
}

/*Flip-card-effect*/
span.card{
  display: inline-block;
  padding: 10px 20px;
}

span.card img{
  width: 100%;
  height: 99%;
  object-fit: fill;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  background-color: transparent;
  width: 200px;
  height: 200px;
  border: 4px solid #f1f1f1;
  float: left;

  border-radius: 5px;
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 12px;
  transition: transform 1.5s;
  transform-style: preserve-3d;
  
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-image: linear-gradient(#ff9d9d, #a483ff, #555555);
  color: white;
  transform: rotateY(180deg);
}

/*Icons Styling*/
.icons{
  text-align: center;
}

.small-text{
  font-size: 11px;
}

footer{
  text-align: center;
  padding: 10px;
  background-color: #FF3E3F;
}

footer a:hover{
  color: #f1f1f1;
}

/*Responsive Web Design*/
/* For mobile devices*/
@media only screen and (max-width: 768px){
  .header{
    width: 100%;
    margin: 0px;
  }

  h1.header{
    font-size: 30px;
  }

  h2.header{
    font-size: 10px;
  }

  li a, .dropbtn{
    padding: 10px 2px;
  }

  span.card{
    padding: 15px;
  }

  .flip-card {
    width: 150px;
    height: 150px;
    border: 2px solid #f1f1f1;
    margin-left: 10%;
  }

  .flip-card-back, .flip-card-back a{
    font-size: 13px;
  }

  .home, .service, .products, .contact{
    padding: 1px 2px;
    margin: 1px 3px;
    border-radius: 10px;
  }

  footer{
    margin-top: 10px;
  }
}